-- GENERATED SPELL FOR [Howling Wolvar Shaman] --


function spell0_26825(pUnit, Event) --@Earth Shock,n/a--
pUnit:FullCastSpellOnTarget(13281,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26825', 2335, 1)
end

function spell1_26825(pUnit, Event) --@Earthbind Totem,Self--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(15786,pUnit)
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_26825', 1, 1)
end

function spell2_26825(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(26098,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26825', 3000, 1)
end

function Sorts_26825(pUnit, Event)
local choix_sorts_26825 = math.random(0, 2)
if choix_sorts_26825 == 0 then
pUnit:RegisterEvent('spell0_26825', 1, 1)
end
if choix_sorts_26825 == 1 then
pUnit:RegisterEvent('spell1_26825', 1, 1)
end
if choix_sorts_26825 == 2 then
pUnit:RegisterEvent('spell2_26825', 1, 1)
end
end

function mob26825_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26825', math.random(1500, 3000), 1)
end

function mob26825_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26825_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26825_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26825, 1, 'mob26825_Action')
RegisterUnitEvent(26825, 2, 'mob26825_Leave')
RegisterUnitEvent(26825, 3, 'mob26825_Kill')
RegisterUnitEvent(26825, 4, 'mob26825_Die')
